]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
WorkspacesView: set the actual geometry when creating workspaces
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 27 Apr 2013 12:11:14 +0000 (14:11 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 27 Apr 2013 13:09:19 +0000 (15:09 +0200)
If we created a workspace after showing the view, we would never
set the geometry on it, which would cause an exception in the
window layout code and leave the DND state tracking in an undefined
state.

https://bugzilla.gnome.org/show_bug.cgi?id=699029

js/ui/workspacesView.js

index 5c97e9c73eac23b6034fac01671c4509aa664f4f..2f4730873992d8044d4d5b4e24927a3af5e37934 100644 (file)
@@ -297,6 +297,8 @@ const WorkspacesView = new Lang.Class({
         if (newNumWorkspaces > oldNumWorkspaces) {
             for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {
                 this._workspaces[w].setFullGeometry(this._fullGeometry);
+                if (this._actualGeometry)
+                    this._workspaces[w].setActualGeometry(this._actualGeometry);
                 this.actor.add_actor(this._workspaces[w].actor);
             }